how to add a background overlay in css

85

html {
  min-height:100%;
  background:linear-gradient(0deg, rgba(255, 0, 150, 0.3), rgba(255, 0, 150, 0.3)), url(http://lorempixel.com/800/600/nature/2);
  background-size:cover;
}
<div id="element-with-background-image">
   <div id="color-overlay"></div>
   ...
</div>

Comments

Submit
0 Comments